package Models;

import java.sql.ResultSet;
import java.sql.SQLException;

// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
// #[regen=yes,id=DCE.E8804087-060D-2B56-BA23-A616D0062756]
// </editor-fold> 
public class Car extends DB.RowAbstract
{
	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,id=DCE.B356DD2B-4D1A-338C-3A92-6F785168B510]
	// </editor-fold>
	private boolean carriesDog;

	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,id=DCE.B4EC88FA-DF21-5197-7FD9-F8A25E4068D6]
	// </editor-fold>
	private String licensePlate;

	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,id=DCE.32B1EC6D-BE35-ABE8-30C1-D904BEBDE91F]
	// </editor-fold>
	public Car ()
	{}

	public void importData(ResultSet data) throws SQLException
	{
		this.setCarriesDog(data.getBoolean("carriesDog"));
		this.setLicensPlate(data.getString("licensePlate"));
	}

	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,regenBody=yes,id=DCE.1BD39F26-B0C8-03AA-CA46-A62784932356]
	// </editor-fold>
	public boolean getCarriesDog () {
		return carriesDog;
	}

	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,regenBody=yes,id=DCE.DF379EF3-B70C-21DA-DC80-7C5593C175FC]
	// </editor-fold>
	public void setCarriesDog (boolean val) {
		carriesDog = val;
	}

	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,regenBody=yes,id=DCE.101D782D-5AED-63B5-AF1F-999B04A04A58]
	// </editor-fold>
	public String getLicensPlate () {
		return licensePlate;
	}

	// <editor-fold defaultstate="collapsed" desc=" UML Marker ">
	// #[regen=yes,regenBody=yes,id=DCE.5D1E4DA2-13AF-D5FE-5707-F50F966801DD]
	// </editor-fold>
	public void setLicensPlate (String val) {
		licensePlate = val;
	}
}

